@extends('admin.layout.main')
@section("content")
<style>
    .vintage {
        color: transparent;
        background-color: black;
        text-shadow: rgba(255, 255, 255, 0.5) 0 5px 6px, rgba(255, 255, 255, 0.2) 1px 3px 3px;
        -webkit-background-clip: text;
    }
    .content{
        padding-left:20px;
    }
</style>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>联系人详情</legend>
</fieldset>
<div class="content">
    <div class="layui-form-item" >
        <label class="vintage">来源:&nbsp;&nbsp;&nbsp;{{$contact->source}}</label>
    </div>
    <div class="layui-form-item">
    <label class="vintage"  >姓名:&nbsp;&nbsp;&nbsp;   {{$contact->name}}</label>
    </div>
    <div class="layui-form-item">
    <label class="vintage"  >公司名:&nbsp;&nbsp;&nbsp;{{$contact->company_name}}</label>
    </div>
    <div class="layui-form-item">
    <label class="vintage"  >行业:&nbsp;&nbsp;&nbsp;{{$contact->industry}}</label>
    </div>
        <div class="layui-form-item">
    <label class="vintage"  >职务:&nbsp;&nbsp;&nbsp;{{$contact->position}}</label>
        </div>
            <div class="layui-form-item">
    <label class="vintage"  >地址:&nbsp;&nbsp;&nbsp;{{$contact->address}}</label>
            </div>
                <div class="layui-form-item">
    <label class="vintage"  >性别:&nbsp;&nbsp;&nbsp;{{$contact->gender}}</label>
                </div>
                    <div class="layui-form-item">
    <label class="vintage"  >联系电话:&nbsp;&nbsp;&nbsp;{{$contact->phone}}</label>
                    </div>
    <div class="layui-form-item">
        <label class="vintage"  >微信:&nbsp;&nbsp;&nbsp;{{$contact->Micro}}</label>
    </div>
    <div class="layui-form-item">
        <label class="vintage"  >下一次联系时间:&nbsp;&nbsp;&nbsp;{{$contact->next_time}}</label>
    </div>
    <div class="layui-form-item">
        @if($contact->is_customer==0)
        <label class="vintage"  >是否客户:&nbsp;&nbsp;&nbsp;否</label>
        @else
            <label class="vintage"  >是否客户:&nbsp;&nbsp;&nbsp;是</label>
        @endif
    </div>
    <div class="layui-form-item">
        <label class="vintage"  >用户ID:&nbsp;&nbsp;&nbsp;<a href="/admin/user/{{$contact->user_id}}/setting">{{$contact->user_id}}</a></label>
    </div>
    <div class="layui-form-item">
        <label class="vintage"  >创建时间:&nbsp;&nbsp;&nbsp;{{$contact->created_at}}</label>
    </div>
</div>
<button class="layui-btn" id="update">进入修改页面</button>
<button class="layui-btn" id="back">返回</button>
    <script>
        $('#update').on('click', function(){
            window.location.href="/admin/leads/{{$contact->id}}/edit"
        });
        $('#back').on('click', function(){
            history.back();
        });
    </script>
@endsection
